<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page import="board1.BoardDAO"%>
<%@ page import="board1.BoardTO"%>
<%@ page import="board1.UserDAO"%>
<%@ page import="board1.UserTO"%>
<%@ page import="java.util.ArrayList"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>댓글</title>
</head>
<body>
	<form action="reply_ok.jsp" method="post">
글번호: <select name="idx">
<%
	request.setCharacterEncoding("UTF-8");

	BoardDAO dao = new BoardDAO();

 	ArrayList<BoardTO> data = dao.listBoard();
 		
	UserDAO user_dao = new UserDAO();
	UserTO user_to = new UserTO();

 	 	
 	for (int i = 0; i < data.size(); i++) {
 		BoardTO to = (BoardTO) data.get(i);
 		String idx = to.getIdx();
 		String board_id = to.getBoard_id();
  %>	
 		 <option value="<%=idx%>"><%=idx +"(" + board_id +")" %></option>	
 <% } %>
 </select> 	<br>

		전화번호: <input type="text" name="phone_number" /><br> 
		내용: <input type="text" maxlength=100 name="subcontent" /><br> 
		<input type="submit" value="전송" />
	</form>
</body>
</html>
